package org.example.myleet.p919;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        CBTInserter cbtInserter = new CBTInserter(Parser.parse(new Integer[]{1, 2}));
        Assert.isTrue(1 == cbtInserter.insert(3));
        Assert.isTrue(2 == cbtInserter.insert(4));
        Assert.isTrue("[1,2,3,4]".equals(cbtInserter.get_root().serialize()));
    }
}
